import {axios} from '../utils/request'
import {USER_MODULE} from "./_prefix";

export const register = payload => {
    const {userName, password, organization} = payload;
    return axios.post(`${USER_MODULE}/register`, {
        userName, password, organization
    }).then(res => {
            return res;
        }
    )
}

export const login = payload => {
    const {userName, password, organization} = payload;
    return axios.post(`${USER_MODULE}/login`, {
        userName, password, organization
    }).then(res => {
            return res;
        }
    )
}
